﻿<Page x:Class="University.Workshop.Presentation.IncomeVsOutflow.SearchIncomeVsOutFlow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      Height="563" Width="780"
	Title="SearchIncomeVsOutFlow" Loaded="Page_Loaded">

    <Grid Height="563" Width="780">
        <Label Content="Ingresos" FontSize="42" FontWeight="Bold" HorizontalAlignment="Left" Margin="109,108,0,0" VerticalAlignment="Top" />
        <DatePicker Height="25" HorizontalAlignment="Left" Margin="275,53,0,0" Name="initialDateDPk" VerticalAlignment="Top" Width="115" />
        <DatePicker Height="25" HorizontalAlignment="Left" Margin="410,53,0,0" Name="endDateDpk" VerticalAlignment="Top" Width="115" />
        <Button Content="Buscar" Height="43" HorizontalAlignment="Left" Margin="357,96,0,0" Name="searchBtn" VerticalAlignment="Top" Width="75" Click="SearchBtn_Click" FontWeight="Bold"/>
        <Label Content="Desde" Height="28" HorizontalAlignment="Left" Margin="310,25,0,0" Name="label1" VerticalAlignment="Top" />
        <Label Content="Hasta" Height="28" HorizontalAlignment="Left" Margin="453,25,0,0" Name="label7" VerticalAlignment="Top" />
        <DataGrid AutoGenerateColumns="False" CanUserAddRows="False" HeadersVisibility="None" Height="208" HorizontalAlignment="Center" Margin="12,207,381,0" Name="collectControlFindeddDgv" VerticalAlignment="Top" Width="352">
            <DataGrid.Columns>
                <DataGridTemplateColumn Header="Fecha" Width="100">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Label Content="{Binding CollectPayDate}" ContentStringFormat="{}{0:MM/dd/yyyy}" Height="32" VerticalContentAlignment="Center" Style="{StaticResource DataGridLabel}"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTemplateColumn Header="tipo" Width="112">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Label Content="{Binding Estructura}" Height="16" VerticalContentAlignment="Center" Style="{StaticResource DataGridLabel}"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTemplateColumn Header="Gasto" Width="75">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Label Content="{Binding PaymentAmount}" Height="16" VerticalContentAlignment="Center" Style="{StaticResource DataGridLabel}"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTemplateColumn Header="Acciones" Width="60">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <DockPanel Width="78">
                                <Button Height="32" Name="ShowOtbDataBtn" ToolTip="Mostrar" Width="32" Click="ShowIncomeBtn_Click" HorizontalAlignment="Center">
                                    <Button.Background>
                                        <ImageBrush ImageSource="/University.Workshop.Presentation;component/Resources/Icons/file_find.ico" Stretch="Fill" TileMode="FlipXY" Viewport="0,0,32,32" ViewportUnits="Absolute" />
                                    </Button.Background>
                                </Button>
                            </DockPanel>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
            </DataGrid.Columns>
        </DataGrid>
        <DataGrid AutoGenerateColumns="False" CanUserAddRows="False" HeadersVisibility="None" Height="208" HorizontalAlignment="Center" Margin="381,207,12,0" Name="expensesFindeddDgv" VerticalAlignment="Top" Width="352">
            <DataGrid.Columns>
                <DataGridTemplateColumn Header="Fecha" Width="100">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Label Content="{Binding SpendDate}" ContentStringFormat="{}{0:MM/dd/yyyy}" Height="32" VerticalContentAlignment="Center" Style="{StaticResource DataGridLabel}"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTemplateColumn Header="tipo" Width="112">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Label Content="{Binding StringExpenseType}" Height="16" VerticalContentAlignment="Center" Style="{StaticResource DataGridLabel}"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTemplateColumn Header="Gasto" Width="75">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Label Content="{Binding expensePaymentAmount}" Height="16" VerticalContentAlignment="Center" Style="{StaticResource DataGridLabel}"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTemplateColumn Header="Acciones" Width="60">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <DockPanel Width="78">
                                <Button Height="32" Name="ShowOtbDataBtn" ToolTip="Mostrar" Width="32" Click="ShowOutflowBtn_Click" HorizontalAlignment="Center">
                                    <Button.Background>
                                        <ImageBrush ImageSource="/University.Workshop.Presentation;component/Resources/Icons/file_find.ico" Stretch="Fill" TileMode="FlipXY" Viewport="0,0,32,32" ViewportUnits="Absolute" />
                                    </Button.Background>
                                </Button>
                            </DockPanel>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
            </DataGrid.Columns>
        </DataGrid>
        <Rectangle Fill="#43000000" Height="25" HorizontalAlignment="Left" Margin="30,173,0,0" Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Width="352" />
        <Label Content="Tipo" Height="28" HorizontalAlignment="Left" Margin="131,173,0,0" Name="label2" VerticalAlignment="Top" />
        <Label Content="Monto" Margin="0,174,489,364" Name="label6" HorizontalAlignment="Right" Width="46" />
        <Label Content="Fecha" Height="28" HorizontalAlignment="Left" Margin="32,173,0,0" Name="label4" VerticalAlignment="Top" />
        <Label Content="Egresos" FontSize="42" FontWeight="Bold" HorizontalAlignment="Left" Margin="506,107,0,0" VerticalAlignment="Top" />
        <Rectangle Fill="#43000000" Height="25" HorizontalAlignment="Left" Margin="398,173,0,0" Name="rectangle2" Stroke="Black" VerticalAlignment="Top" Width="352" />
        <Label Content="Tipo" Height="28" HorizontalAlignment="Left" Margin="500,173,0,0" Name="label3" VerticalAlignment="Top" />
        <Label Content="Monto" Margin="614,173,120,365" Name="label8" />
        <Label Content="Fecha" Height="28" HorizontalAlignment="Left" Margin="401,173,0,0" Name="label10" VerticalAlignment="Top" />
        <TextBox Height="30" HorizontalAlignment="Left" IsReadOnly="True" Margin="321,447,0,0" Name="totalMoneyTxt" VerticalAlignment="Top" Width="137" />
    </Grid>
</Page>
